# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: /data/bkce/open_paas/paas/templates_module/base.html.py
# Compiled at: 2018-01-02 11:22:53
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1514863373.687043
_enable_loop = True
_template_filename = u'/data/bkce/open_paas/paas/templates/base.html'
_template_uri = u'/base.html'
_source_encoding = 'utf-8'
_exports = [u'right_content_base', u'head_content', u'head', u'left_content', u'body_content', u'base_app']

def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        CSS_SUFFIX = context.get('CSS_SUFFIX', UNDEFINED)

        def head():
            return render_head(context._locals(__M_locals))

        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        self = context.get('self', UNDEFINED)

        def head_content():
            return render_head_content(context._locals(__M_locals))

        def left_content():
            return render_left_content(context._locals(__M_locals))

        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        JS_SUFFIX = context.get('JS_SUFFIX', UNDEFINED)

        def base_app():
            return render_base_app(context._locals(__M_locals))

        LOGOUT_URL = context.get('LOGOUT_URL', UNDEFINED)

        def body_content():
            return render_body_content(context._locals(__M_locals))

        request = context.get('request', UNDEFINED)
        NOW = context.get('NOW', UNDEFINED)

        def right_content_base():
            return render_right_content_base(context._locals(__M_locals))

        csrf_token = context.get('csrf_token', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'<!DOCTYPE html>\n<html>\n<head>\n    <script type="text/javascript">\n      var _speedMark = new Date();\n      //\u5728js\u4e2d\u4f7f\u7528site_url,\u5219\u8fd9\u4e2ajavascript\u7247\u6bb5\u4e00\u5b9a\u8981\u4fdd\u7559\n      var site_url = "')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'";            // app\u7684url\u524d\u7f00,\u5728ajax\u8c03\u7528\u7684\u65f6\u5019\uff0c\u5e94\u8be5\u52a0\u4e0a\u8be5\u524d\u7f00\n    </script>\n\n    ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'head'):
            context['self'].head(**pageargs)
        __M_writer(u'\n    <style>\n      html,body{\n          height: 100%;\n      }\n    </style>\n</head>\n\n<body>\n\n    ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'head_content'):
            context['self'].head_content(**pageargs)
        __M_writer(u'\n      <!-- \u4e2d\u95f4\u4e3b\u4f53\u5185\u5bb9 start -->\n      <div id="body" class="body page_index">\n          <div id="js_container_box" class="container_box cell_layout side_l">\n\n            ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'body_content'):
            context['self'].body_content(**pageargs)
        __M_writer(u'\n\n          </div>\n\n          <div id="return_top" class="return_btn return_top" href="#" title="\u8fd4\u56de\u9876\u90e8" style="display:none;">\n          <span aria-hidden="true" class="glyphicon glyphicon-chevron-up"></span>\n        </div>\n        <div id="return_bottom" class="return_btn return_bottom" href="#" title="\u8fd4\u56de\u9876\u90e8" style="display:none;">\n          <span aria-hidden="true" class="glyphicon glyphicon-chevron-down"></span>\n        </div>\n\n        <!-- <div class="faq"> -->\n          <!-- <ul class="links"> -->\n            <!-- <li class="links_item"><a href="mailto:contactus_bk@tencent.com" style="font-size:14px;">\u8054\u7cfb\u6211\u4eec</a></li> -->\n          <!-- </ul> -->\n          <!-- <p class="tail">contactus_bk@tencent.com</p> -->\n        <!-- </div> -->\n      </div>\n      <!-- \u4e2d\u95f4\u4e3b\u4f53\u5185\u5bb9 end -->\n      <!-- \u5c3e\u90e8\u58f0\u660e start -->\n      <div class="foot" id="footer">\n        <ul class="links ft">\n            <li>\n                <a id="contact_us" class="link">QQ\u54a8\u8be2(800802001)</a>\n                | <a href="http://bbs.bk.tencent.com/forum.php" target="_blank" hotrep="hp.footer.feedback" class="link">\u84dd\u9cb8\u8bba\u575b</a>\n                | <a href="http://bk.tencent.com/" target="_blank" hotrep="hp.footer.feedback" class="link">\u84dd\u9cb8\u5b98\u7f51</a>\n                | <a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'" target="_blank" hotrep="hp.footer.feedback" class="link">\u84dd\u9cb8\u667a\u4e91\u5de5\u4f5c\u53f0</a>\n            </li>\n            <li><p class="copyright">Copyright \xa9 2012-')
        __M_writer(unicode(NOW.year))
        __M_writer(u' Tencent BlueKing. All Rights Reserved.</p> </li>\n          <li><p class="copyright">\u84dd\u9cb8\u667a\u4e91 \u7248\u6743\u6240\u6709</p> </li>\n        </ul>\n      </div>\n      <!-- \u5c3e\u90e8\u58f0\u660e end -->\n      <!--logo\u4fee\u6539-->\n      <div id="div_m_logo" style="display:none">\n          <form method=\'post\' id=\'form_logo\' action=\'\'  enctype=\'multipart/form-data\'>\n              <input type="hidden" name="csrfmiddlewaretoken" value="')
        __M_writer(unicode(csrf_token))
        __M_writer(u'"/>\n              <input type=\'file\' name=\'logo_m\' id=\'logo_m\'>\n              <div class="ml3 mt10" style="color:#999;">\u5efa\u8baeLOGO\u5927\u5c0f\u4e3a100px*100px</div>\n              <div class="ml3 mt10" style="color:red" id="logo_error_tips"></div>\n              <div class="ml3 mt10" style="color:green" id="logo_success_tips"></div>\n          </form>\n          <iframe name="logo_target_frame" style="display:none;"></iframe>\n      </div>\n      <!-- jQery\u5e93 \u516c\u5171\u811a\u672c -->\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/jquery-1.8.2.min.js"></script>\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/jquery.zeroclipboard-0.2.0/jquery.zeroclipboard.min.js"></script>\n      <!-- bootstrap JS \u516c\u5171\u811a\u672c -->\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/bootstrap3.1.1/js/bootstrap.min.js"></script>\n      <!-- bkdialog -->\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/bkDialog-1.0/js/dialog.js"></script>\n      <!--select2-->\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/select2/js/select2.js"></script>\n      <!--[if lt IE 9]>\n        <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/html5shiv.min.js"></script>\n        <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/respond.min.js"></script>\n      <![endif]-->\n      <!-- Pass\u914d\u7f6e\u6587\u4ef6  -->\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/core.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'"></script>\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/utils.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'"></script>\n      <script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/paas_base.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'"></script>\n      <!-- \u517c\u5bb9\u6027\u8bbe\u7f6e -->\n      <!--[if lt IE 6]>\\xe8\\x93\\x9d\\xe9\\xb2\\xb8\\xe6\\x99\\xba\\xe8\\x90\\xa5\\x20\\xe7\\x89\\x88\\xe6\\x9d\\x83\\xe6\\x89\\x80\\xe6\\x9c\\x89<![endif]-->\n      ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'base_app'):
            context['self'].base_app(**pageargs)
        __M_writer(u'\n      ')
        __M_writer(unicode(self.body()))
        __M_writer(u'\n</body>\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_right_content_base(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def right_content_base():
            return render_right_content_base(context)

        __M_writer = context.writer()
        __M_writer(u'\n                ')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_head_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        csrf_token = context.get('csrf_token', UNDEFINED)

        def head_content():
            return render_head_content(context)

        request = context.get('request', UNDEFINED)
        LOGOUT_URL = context.get('LOGOUT_URL', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n        <!-- \u901a\u77e5\u516c\u544a -->\n        <div class=\'flayer_desk\'></div>\n\n        <!-- \u5934\u90e8\u6a2a\u5411\u5bfc\u822a start -->\n        <div class="head" id="header">\n\n            <div class="head_box">\n                <div class="inner wrp">\n                  <span class="logo_bk">\n                      <a title="\u84dd\u9cb8\u667a\u4e91\u5de5\u4f5c\u53f0" href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'">\n                        <img src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'img/logo/logo_develper_01.png"/>\n                      </a>\n                      <a title="\u84dd\u9cb8\u667a\u4e91\u5f00\u53d1\u8005\u4e2d\u5fc3" href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'app/list/">\n                        <img src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'img/logo/logo_develper_02.png"/>\n                      </a>\n                  </span>\n                    <input type=\'hidden\' name=\'csrfmiddlewaretoken\' value=\'')
        __M_writer(unicode(csrf_token))
        __M_writer(u'\'>\n                    <div class="account">\n                        <div class="account_meta account_info account_meta_primary">\n                              <a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'accounts/profile/" class="nickname" title="')
        __M_writer(unicode(request.user.username if request.user and request.user.username else ''))
        __M_writer(u'">')
        __M_writer(unicode(request.user.username if request.user and request.user.username else ''))
        __M_writer(u'</a>\n                               <a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'accounts/profile/">\n                                <img src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'img/getheadimg.jpg" class="avatar">\n')
        if request.user.is_superuser:
            __M_writer(u'                                  <i class="crown"></i>\n')
        __M_writer(u'                               </a>\n                        </div>\n')
        if request.user.username:
            __M_writer(u'                            <div class="account_meta account_logout account_meta_primary"><a id="logout" href="')
            __M_writer(unicode(LOGOUT_URL))
            __M_writer(u'">\u6ce8\u9500</a></div>\n')
        __M_writer(u'                    </div>\n\n                </div>\n            </div>\n\n        </div>\n        <!-- \u5934\u90e8\u6a2a\u5411\u5bfc\u822a end -->\n    ')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_head(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        CSS_SUFFIX = context.get('CSS_SUFFIX', UNDEFINED)

        def head():
            return render_head(context)

        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n      <title>\u5f00\u53d1\u8005\u4e2d\u5fc3|\u84dd\u9cb8\u667a\u4e91\u793e\u533a\u7248</title>\n      <meta name="keywords" content="\u5f00\u53d1\u8005\u4e2d\u5fc3,\u6e38\u620f\u8fd0\u7ef4,\u8fd0\u7ef4,\u670d\u52a1\u5668\u7ba1\u7406,\u6a21\u5757\u914d\u7f6e,\u76d1\u63a7,\u817e\u8baf\u6e38\u620f,\u84dd\u9cb8,\u667a\u4e91,devops,\u8fd0\u7ef4\u5f00\u53d1,\u84dd\u9cb8\u793e\u533a\u7248,\u793e\u533a\u7248,\u4f5c\u4e1a\u5e73\u53f0,\u96c6\u6210\u5e73\u53f0,\u914d\u7f6e\u5e73\u53f0,\u7ba1\u63a7\u5e73\u53f0" />\n      <meta name="description" content="\u84dd\u9cb8\u667a\u4e91\u8f6f\u4ef6\u793e\u533a\u7248\u662f\u7531\u84dd\u9cb8\u667a\u4e91\u56e2\u961f\u63d0\u4f9b\u7684\u4e00\u5957\u57fa\u4e8ePaaS\u7684\u6280\u672f\u89e3\u51b3\u65b9\u6848\uff0c\u65e8\u5728\u6539\u53d8\u4e2d\u56fd\u8fd0\u7ef4\u884c\u4e1a\uff0c\u5e2e\u52a9\u4f01\u4e1a\u5feb\u901f\u8fbe\u5230\u57fa\u7840\u8fd0\u7ef4\u652f\u6491\u80fd\u529b\uff0c\u5e76\u63d0\u5347\u6280\u672f\u4eba\u5458\u7684DevOps\u80fd\u529b\u3002\u8be5\u7248\u672c\u63d0\u4f9b\u4e86\u914d\u7f6e\u5e73\u53f0\uff0c\u4f5c\u4e1a\u5e73\u53f0\uff0c\u96c6\u6210\u5e73\u53f0\u7b49\u5f3a\u5927\u529f\u80fd\uff0c\u7528\u6237\u5728\u4f7f\u7528\u65f6\uff0c\u8bf7\u67e5\u9605\u5e76\u9075\u5b88\u300a\u84dd\u9cb8\u667a\u4e91\u8f6f\u4ef6\u7528\u6237\u670d\u52a1\u534f\u8bae\u300b\u3002" />\n      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />\n\n      <link href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'favicon.ico" rel="Shortcut Icon">\n\n      <!-- bootstrap CSS \u516c\u5171\u6837\u5f0f -->\n      <link rel="stylesheet" type="text/css" href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/bootstrap3.1.1/css/bootstrap.min.css">\n      <!-- \u56fe\u6807\uff08bk-icon\uff09 -->\n      <link href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/bk-icon-1.1/iconfont.css" rel="stylesheet">\n      <!-- bkdialog -->\n      <link rel="stylesheet" type="text/css" href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/bkDialog-1.0/css/ui-dialog.css">\n      <!-- \u9876\u90e8\u5bfc\u822acss \u79c1\u6709\u6837\u5f0f -->\n      <link rel="stylesheet" type="text/css" href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'css/layout_head.')
        __M_writer(unicode(CSS_SUFFIX))
        __M_writer(u'">\n      <!-- base \u57fa\u672c\u6837\u5f0f -->\n      <link rel="stylesheet" type="text/css" href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'css/base.')
        __M_writer(unicode(CSS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'">\n      <!--select2-->\n      <link href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'assets/select2/css/select2.css?v=1" rel="stylesheet">\n    ')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_left_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def left_content():
            return render_left_content(context)

        __M_writer = context.writer()
        __M_writer(u'\n                ')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_body_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def right_content_base():
            return render_right_content_base(context)

        def left_content():
            return render_left_content(context)

        def body_content():
            return render_body_content(context)

        __M_writer = context.writer()
        __M_writer(u'\n              <!-- \u5de6\u4fa7\u5bfc\u822a start -->\n              <div class="col_side">\n                ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'left_content'):
            context['self'].left_content(**pageargs)
        __M_writer(u'\n              </div>\n              <!-- \u5de6\u4fa7\u5bfc\u822a end -->\n\n              <!-- \u53f3\u4fa7\u5185\u5bb9 start -->\n              <div class="col_main">\n                ')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'right_content_base'):
            context['self'].right_content_base(**pageargs)
        __M_writer(u'\n              </div>\n              <!-- \u53f3\u4fa7\u5185\u5bb9 end -->\n            ')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_base_app(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:

        def base_app():
            return render_base_app(context)

        __M_writer = context.writer()
        __M_writer(u'\n      ')
        return ''
    finally:
        context.caller_stack._pop_frame()